<?php if (!defined('BASEPATH')) die();
class Home extends Main_Controller {

   public function index()
	{
	  $data['title'] = "Grab Grocery - Home";
      $this->load->view('include/header',$data);
      $this->load->view('templates/menubar');
      $this->load->view('home');
      $this->load->view('include/footer');
	}
	public function signup($msg = NULL)
	{
		$data['message'] = $msg;
		$data['title'] = "Grab Grocery - Signup";
		$this->load->view('include/header',$data);
		$this->load->view('templates/menubar');
		$this->load->view('signup',$data);
		$this->load->view('include/footer');
	}

	public function logout()
	{
		$this->session->sess_destroy();
		redirect('home');
	}
}

/* End of file frontpage.php */
/* Location: ./application/controllers/frontpage.php */
